import random
n=int(input("Количество выстрелов:"))
b=0
s=0
while b<n:
    b = b + 1
    x = random.randint(-100,100)
    y = random.randint(-100,100)
    if x > 0 and x < 6and y > 0 and y < 6:
        s = s+1
    elif x > 0 and x < 6 and y < 0 and y > -9:
        s = s + 1
    elif x < 0 and x > -8 and y > 0 and y < 6:
        s = s + 1
    elif x < 0 and x > -8 and y < 0 and y > -9:
        s = s + 1
print("Количество попаданий:", s)
